package action;

import com.opensymphony.xwork2.ActionSupport;
import service.NoticeServiceInter;

/**
 * Created by Administrator on 2017/4/25.
 */
public class QueryAllNoticeAction extends ActionSupport {

    private NoticeServiceInter noticeServiceImpl;
    private String data;

    public NoticeServiceInter getNoticeServiceImpl() {
        return noticeServiceImpl;
    }

    public void setNoticeServiceImpl(NoticeServiceInter noticeServiceImpl) {
        this.noticeServiceImpl = noticeServiceImpl;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
    public String execute(){
        this.setData(this.getNoticeServiceImpl().queryAllNotice());
        return SUCCESS;
    }
}
